<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <h1>QG_贴吧</h1>
  <h2>创建贴吧</h2>
  <form action="${pageContext.request.contextPath}/CreatePostbar" method="post">
    <table>
      <tr>
        <div>请输入您要创建的贴吧信息</div>
      </tr>
      <tr>
        <td>贴吧id</td>
        <td>
          <input type="text" value="" name="bar_id"/>
        </td>
      </tr>
      <tr>
        <td>贴吧名称</td>
        <td>
          <input type="text" value="" name="bar_name"/>
        </td>
      </tr>
      <tr>
        <td>编辑吧内公告</td>
        <td>
          <input type="text" value="" name="title"/>
        </td>
      </tr>
      <tr>
        ${createBarError}
      </tr>
      <tr>
        ${createBarSuccess}
      </tr>
      <tr>
        <td>
          <button type="submit" class="inputButton" value="" >确定</button>
        </td>
        <td>
          <button type="button" class="inputButton" onclick="Return()">返回</button>
        </td>
      </tr>
    </table>
  </form>
  <script type="text/javascript">
    			function Return(){
    			    alert("创建完成");
    			    window.location.href="Myhome.html";
    			}
    </script>
</body>
</html>